var app = getApp()
Page({
  data:{
    resourceUrl: app.globalData.apiUrl + '/public/uploads/goods/',
    list:''
  },
  onLoad:function(){
    var that = this;
    wx.request({
      url: app.globalData.apiUrl+'/api/goods/get_goods',
      method: 'GET',
      dataType: 'json',
      success: function(res) {
        console.log(res)
        that.setData({list:res.data})
      },
      fail: function(res) {},
      complete: function(res) {},
    })

  }
})